package com.atguigu.gmall.feign.product;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.web.CategoryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author:ahang
 * @create:2022-10-03 22:21
 * @Description:
 */
//在nacos中的服务名
@FeignClient("service-product")
@RequestMapping("api/inner/product/")
public interface CategoryFeignClient {

    @GetMapping("categorys/tree")
    Result<List<CategoryVo>> getCategorys();
}
